package com.xinyue.fileOperate;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class FileClient {

	public static void main(String[] args) {
		
		String txt_path = System.getProperty("user.dir") + "/src/messages/test/fileTest.txt";
		String txt_path1 = System.getProperty("user.dir") + "/src/messages/test/test/filezhang.txt";
		
		FileOperateUtil fo = new FileOperateUtil();
		
		File file = fo.getFile(txt_path);
		
		//String str = "我是好人！";
		List<String> list = new ArrayList<String>();
		list.add("天天");
		list.add("没事");
		list.add("好吧");
		list.add("可以");
		list.add("不行");
		list.add("天气");
		list.add("好心情");
		list.add("不行你妈");
		
//		fo.writeFile(file, str);
//		fo.writeFilePrintln(file);
//		fo.writeFileBack(file, list, false);
//		fo.writeFile(file, list, true);
		
		//System.out.println(fo.readFileForList(file));
//		fo.copyFile(txt_path, txt_path1);
		fo.copyFile(file, txt_path1);
	}
}
